package repository

import (
	"hcy-go/global/db"
	"hcy-go/global/structs/table"
)

type userDB struct {
}

var UserDB = new(userDB)

func (r userDB) Create(m *table.User) (err error) {
	err = db.GetDB().Create(m).Error
	return err
}
